package com.lianzheng.model;

/*
 *  Created on Wed Feb 01 20:55:50 CST 2012
 *
 */
import java.io.Serializable;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

/**
 * TbSysPartcode Base Java Bean
 * 
 * This class is the base class for the model
 * 
 */
 
public class TbSysPartcode extends com.lianzheng.model.BaseObject implements Serializable {

    protected java.math.BigDecimal id;
	protected String partname;
	protected java.math.BigDecimal ordernum;
	protected String validflag;


  /**
	*
	* Default Empty Constructor for class TbSysPartcode
	*
	*/
	public TbSysPartcode () {
		super();
	}
	
  /**
	*
	* Default All Fields Constructor for class TbSysPartcode
	*
	*/
	public TbSysPartcode (
		 java.math.BigDecimal in_id
		,String in_partname
		,java.math.BigDecimal in_ordernum
		,String in_validflag
        ) {
		this.setId(in_id);
		this.setPartname(in_partname);
		this.setOrdernum(in_ordernum);
		this.setValidflag(in_validflag);
    }

    
  /**
	*
	* @return java.math.BigDecimal
	*/
	public java.math.BigDecimal getId() {
		return this.id;
	}
	
  /**
	* Set the id
	*/	
	public void setId(java.math.BigDecimal aValue) {
		this.id = aValue;
	}	
  /**
	*
	* @return String
	*/
	public String getPartname() {
		return this.partname;
	}
	
  /**
	* Set the partname
	*/	
	public void setPartname(String aValue) {
		this.partname = aValue;
	}	
  /**
	*
	* @return java.math.BigDecimal
	*/
	public java.math.BigDecimal getOrdernum() {
		return this.ordernum;
	}
	
  /**
	* Set the ordernum
	*/	
	public void setOrdernum(java.math.BigDecimal aValue) {
		this.ordernum = aValue;
	}	
  /**
	*
	* @return String
	*/
	public String getValidflag() {
		return this.validflag;
	}
	
  /**
	* Set the validflag
	*/	
	public void setValidflag(String aValue) {
		this.validflag = aValue;
	}	
   /**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		if (!(object instanceof TbSysPartcode)) {
			return false;
		}
		TbSysPartcode rhs = (TbSysPartcode) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.partname, rhs.partname)
				.append(this.ordernum, rhs.ordernum)
				.append(this.validflag, rhs.validflag)
				.isEquals();
	}
	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.partname) 
				.append(this.ordernum) 
				.append(this.validflag) 
				.toHashCode();
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("partname", this.partname) 
				.append("ordernum", this.ordernum) 
				.append("validflag", this.validflag) 
				.toString();
	}

	
}